package com.think.teaching.service;

import com.think.teaching.model.CourseTag;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程和标签对应 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Service
public interface CourseTagService extends IService<CourseTag> {
	CourseTag AddCourseTag(CourseTag courseTag);

	CourseTag UpdateCourseTag(CourseTag courseTag);

	CourseTag GetCourseTag(Integer id);
	
	List<CourseTag> SearchCourseTagWithKey(String key,Boolean withoutBan);

	IPage<CourseTag> ListCourseTagWithTagAndType(Integer count, Integer page, Integer type, Integer tag,Boolean withoutBan);

	CourseTag SetCourseTagState(Integer id, Integer state);
}
